package com.coolwen.spring.aop.Annotation;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author CoolWen
 * @version 2020-03-26 9:23
 */
public class TestAnnotation {
    public static void main(String[] args) {

        ApplicationContext ctx = new ClassPathXmlApplicationContext("beans.xml");

        ICalFibonacci icf = (ICalFibonacci) ctx.getBean("calFibonacci");

        icf.calFibonacciByLoop(50);

        icf.calFibonacciByRecusion(40);
    }
}
